/**
 * 
 */
package guiTegoNieBedzie;

import java.util.LinkedList;

import javax.swing.AbstractListModel;

/**
 * @author fizyk
 *
 */
public abstract class FListModel extends AbstractListModel 
{

	/**
	 * 
	 */
	
	protected LinkedList<?>  data;
	private static final long serialVersionUID = 2192648260887115876L;

	/* (non-Javadoc)
	 * @see javax.swing.ListModel#getElementAt(int)
	 */
//	@Override
	public Object getElementAt(int index) 
	{
		return this.data.get( index );
	}
	
	public LinkedList<?> getAllData()
	{
		return this.data;
	}

	/* (non-Javadoc)
	 * @see javax.swing.ListModel#getSize()
	 */
//	@Override
	public int getSize() 
	{
		return this.data.size();
	}

}
